<div class="portlet">
    <div class="portlet-actions">
        <button class="btn blue btn-sm" ng-click="grid.add()"><i class="fa fa-plus"></i> 新增</button>
    </div>
    <form class="portlet-search-body" name="queryForm">
        <input type="text" class="form-control search-item" ng-model="vehicleNo" placeholder="自编号">
        <input type="text" class="form-control search-item" ng-model="vehicleNoAbbr" placeholder="小自编号">
        <input type="text" class="form-control search-item" ng-model="plateNo" placeholder="车牌号">
        <input type="text" class="form-control search-item" ng-model="lineNo" placeholder="线路号">
        <input type="text" class="form-control search-item" ng-model="companyName" placeholder="经营单位">
        <div class="search-item">
            <button class="btn btn-icon-only default"><i class="fa fa-chevron-right"></i></button>
            <button class="btn btn-sm query" ng-click="grid.query();"><i class="fa fa-search"></i> 查询</button>
            <button class="btn btn-sm reset" ng-click="grid.reset();"><i class="fa fa-eraser"></i> 重置</button>
        </div>
    </form>
    <div class="portlet-body">
        <table ed-grid="grid"  class="table table-striped table-bordered table-advance table-hover"
               data-options="url: 'bus/query.do', modelText: '车辆列表', form: 'queryForm', modal: 'modal'">
            <thead>
            <tr>
                <th data-options="field: '_index'"></th>
                <th data-options="field: 'vehicleNo'">自编号</th>
                <th data-options="field: 'vehicleNoAbbr'">小自编号</th>
                <th data-options="field: 'plateNo'">车牌号</th>
                <th data-options="field: 'lineNo'">线路号</th>
                <th data-options="field: 'companyName'">经营单位</th>
                <th data-options="field: 'busType'">车型</th>
                <th data-options="field: 'busMakeType'">制作车型</th>
                <th data-options="field: 'year'">年限</th>
                <th data-options="field: 'stopPlace'">停车点</th>
                <th data-options="field: 'status | code : bus_status'">状态</th>
                <th>操作</th>
            </tr>
            </thead>
        </table>
    </div>
</div>

<div ed-modal="maintenanceModal" data-options="title: '维修申请', static: true, width: 720, defaultButton:false">
    <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate name="validateForm">
        <div class="form-body">
        	<div class="form-group">
				<label class="col-md-2 control-label">报修单位</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="applyCompany" ng-model="mtApply.applyCompany" required>
            	</div>
				<label class="col-md-2 control-label">客户名称</label>
				<div class="col-md-4">
                    <select class="form-control" name="customerId" ng-model="mtApply.customerId"
                            ng-options="opt.customerId as opt.customerName for opt in customerList" required>
                        <option value="" disabled selected hidden>-- 客户名称 --</option>
                    </select>
            	</div>
            </div>
        	<div class="form-group">
				<label class="col-md-2 control-label">维修类型</label>
				<div class="col-md-4">
                    <select class="form-control" name="maintenanceType" ng-model="mtApply.maintenanceType"
                            ng-options="opt.value as opt.name for opt in options.maintenance_type" required>
                        <option value="" disabled selected hidden>-- 维修类型 --</option>
                    </select>
            	</div>
                <label class="col-md-2 control-label">广告内容</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" name="adName" ng-model="mtApply.adName" required>
                </div>

            </div>
        	<div class="form-group">
                <label class="col-md-2 control-label">工作组</label>
                <div class="col-md-4">
                    <select class="form-control" name="maintenanceType" ng-model="mtApply.maintenanceType"
                            ng-options="opt.value as opt.name for opt in options.maintenance_type" required>
                        <option value="" disabled selected hidden>-- 维修类型 --</option>
                    </select>
                </div>
                <label class="col-md-2 control-label">报修描述</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" name="description" ng-model="mtApply.description">
                </div>
            </div>
        </div>
        <div class="form-actions">
            <button type="button" class="btn default" ng-click="grid.cancel();">
                <i class="fa fa-times"></i> 取消
            </button>
            <button type="button" class="btn blue" ng-click="grid.save();">
                <i class="fa fa-times"></i> 确定
            </button>
        </div>
    </form>
</div>

